<?php $uClass     = $sf_params->get('uClass') ?>
<?php $dbClass    = $sf_params->get('dbClass') ?>
<?php $stcClass   = $sf_params->get('stcClass') ?>
<?php $ns         = $sf_params->get('ns') ?>
<?php $action_url = isset($action_url) ? url_for($action_url) : '' ?>
<?php $onsubmit   = isset($onsubmit)   ? $onsubmit            : false ?>

<table class="page_block" cellspacing=0 cellpadding=0 width="100%" border="0">
  <?php if (has_slot('breadcrumb')): ?>
    <?php include_slot('breadcrumb') ?>
  <?php endif; ?>
  <tr>
    <td valign="top" style="padding-top: 3px;">
      <div class="content_div" style="padding: 3px 7px 0px;">
      
        <table width="100%" cellspacing="0" cellpadding="5" border="0">
          <tr>
            <td width="100%">
              <?php if (has_slot('head')): ?>
                <?php include_slot('head') ?>
              <?php else: ?>
                <?php echo isset($title) ? $title : '' ?>
              <?php endif; ?>
            </td>
          </tr>
          <tr>
            <td>
              <table width="100%" cellpadding="2" cellspacing="0">
                <tr>
                  <td>
                    <form 
                      name="<?php echo $uClass ?>" 
                      action="<?php echo $action_url ?>" 
                      method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>
                      <?php if (!$onsubmit): ?>
                        onsubmit="return false;"
                      <?php endif; ?>
                    >
                    
                      <?php include_partial
                            (
                              'Crud/form', 
                              get_objective_vars(get_defined_vars())
                            )
                      ?>
                      
                      
                      <?php if (has_slot('extra')): ?>
                        <?php include_slot('extra') ?>
                      <?php endif; ?>
                    </form>
                    
                  </td>
                </tr>
              </table>
              
              <?php if (has_slot('buttons_edit')): ?>
                <?php include_slot('buttons_edit') ?>
              <?php endif; ?>
 
            </td>
          </tr>
        </table>
      </div>

    </td>
  </tr>
</table>
